<%@ page contentType="text/html;charset=utf-8" %>
<%@ page import="com.service.UserService" %>
<html>
  <head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>用户登录</title> 
  </head>  
  <body >
  <center>
  <%
  	String uid=request.getParameter("uid");
  	String password=request.getParameter("password");
  	UserService userService=new UserService();
  	if(userService.login(uid,password)){
	  	session.setAttribute("uid",uid);
  %>
  		<font color="blue">login successfully！</font>
  <%}else{ %>
  		<font color="red">user name or password wrong!</font>
  <%}%>
  <a href="#" onclick="history.back();">back</a>
  </center>
  </body>
</html>
